package com.yuanheng100.ems4j.web.controller.session;

import com.yuanheng100.ems4j.api.IRoleService;
import com.yuanheng100.ems4j.model.Ems4jRole;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 角色相关操作处理
 *
 * Created by wangguangshuo on 2017/1/22.
 */
@RestController
@RequestMapping("/role")
public class RoleController
{
    private static Logger logger = LoggerFactory.getLogger(RoleController.class);

    @Autowired
    private IRoleService roleService;

    @RequestMapping("/getRoleList")
    public List<Ems4jRole> getRoleList(HttpServletResponse response)
    {
        return roleService.getRoleList(1);
    }

}
